<%= form_for(@board_entry) do |f| %>
  <% if @board_entry.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@board_entry.errors.count, "error") %> prohibited this board_entry from being saved:</h2>

      <ul>
      <% @board_entry.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>


  <div class="field">
    <%= f.label :board_type %><br />
    <%= f.collection_select(:board_type_id, BoardType.all, :id, :name) %>
  </div>

  <div class="field">
    <%= f.label :board_category %><br />
    <%= f.collection_select(:board_category_id, BoardCategory.all, :id, :name) %>
  </div>

  <div class="field">
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </div>

  <div class="field">
    <%= f.label :text %><br />
    <%= f.text_field :text %>
  </div>

  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>

  <div class="field">
    <%= f.label :phone %><br />
    <%= f.text_field :phone %>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
